#ifndef __CRC16_H
#define __CRC16_H

#ifdef __cplusplus
extern "C"
{
#endif
#include "stdint.h"
    //-----------------------------------------------------------------------------
    uint16_t CRC16(uint32_t crc, uint8_t *buffer, uint32_t length);
    uint16_t MODBUS_CRC16(uint8_t *buffer, uint16_t length);
    uint16_t crc16(uint8_t *buffer, uint16_t length);

#ifdef __cplusplus
}
#endif

#endif
